﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Dtos
{
    public class ApprovalApplicationDto
    {
        public int ApprovalProcessId { get; set; }
        /// <summary>
        /// 审批流程名称
        /// </summary>
        public string ApprovalProcessName { get; set; }
        /// <summary>
        /// 审批流程等级
        /// </summary>
        public string ApprovalProcessLevel { get; set; }
        /// <summary>
        /// 审批人集合
        /// </summary>
        public string Approvalers { get; set; }
        public int ApprovalApplicationId { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime SubmitlDate { get; set; }
        /// <summary>
        /// 提交人
        /// </summary>
        public string SubmitName { get; set; }
        /// <summary>
        /// 提交事件
        /// </summary>
        public int SubmitEventId { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 审批状态 0-待审批 1-审批通过 2-审批拒绝 
        /// </summary>
        public int ApprovalStatus { get; set; }
        public List<ApprovalListDto> ApprovalListDtos { get; set; } =new List<ApprovalListDto>();


    }
    public class ApprovalListDto
    {
        /// <summary>
        /// 申请表ID
        /// </summary>
        public int ApprovalApplicationId { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public string Approvaler { get; set; }

        /// <summary>
        /// 审批时间
        /// </summary>
        public DateTime ApprovalTime { get; set; } = DateTime.Now;
    }
}
